package com.syzg.base.merge.model;

import java.io.Serializable;
import java.util.*;

public class Person implements Serializable{

	private static final long serialVersionUID = 1L;
	
	public static Short STATUS_VALID = Short.valueOf((short)1);
    public static Short STATUS_INVALID = Short.valueOf((short)0);
    public static Short STATUS_DISABLED = Short.valueOf((short)-1);
    private String id;
    private String code;
    private String account;
    private String name;
    private String password;
    private Short sex;
    private Short status;
    private Date birthday;
    private String email;
    private String mobile;
    private String workTel;
    private String homeTel;
    private String homeAddres;
    private String linkman;
    private String linkmanTel;
    
    private int loginFailureTimes;
    private Date lockedTime;
    
    private Set<Staff> staffs;
    private Set<PersonGroup> personGroups;
    private Set<PersonRole> personRoles;
	
	public Person(){
        staffs = new HashSet<Staff>(0);
        personGroups = new HashSet<PersonGroup>(0);
        personRoles = new HashSet<PersonRole>(0);
    }

    public Person(String id){
        staffs = new HashSet<Staff>(0);
        personGroups = new HashSet<PersonGroup>(0);
        personRoles = new HashSet<PersonRole>(0);
        this.id = id;
    }

    public Person(String id, String code, String account, String name, String password, Short status, Date birthday, 
            String email, String mobile, String workTel, String homeTel, String homeAddres, String linkman, String linkmanTel, 
            Set<Staff> staffs, Set<PersonGroup> personGroups, Set<PersonRole> personRoles,int loginFailureTimes,Date lockedTime){
        this.staffs = new HashSet<Staff>(0);
        this.personGroups = new HashSet<PersonGroup>(0);
        this.personRoles = new HashSet<PersonRole>(0);
        this.id = id;
        this.code = code;
        this.account = account;
        this.name = name;
        this.password = password;
        this.status = status;
        this.birthday = birthday;
        this.email = email;
        this.mobile = mobile;
        this.workTel = workTel;
        this.homeTel = homeTel;
        this.homeAddres = homeAddres;
        this.linkman = linkman;
        this.linkmanTel = linkmanTel;
        this.staffs = staffs;
        this.personGroups = personGroups;
        this.personRoles = personRoles;
        this.loginFailureTimes = loginFailureTimes;
        this.lockedTime = lockedTime;
    }

    public int getLoginFailureTimes() {
		return loginFailureTimes;
	}

	public void setLoginFailureTimes(int loginFailureTimes) {
		this.loginFailureTimes = loginFailureTimes;
	}

	public Date getLockedTime() {
		return lockedTime;
	}

	public void setLockedTime(Date lockedTime) {
		this.lockedTime = lockedTime;
	}

	public String getId(){
        return id;
    }

    public void setId(String id){
        this.id = id;
    }

    public String getCode(){
        return code;
    }

    public void setCode(String code){
        this.code = code;
    }

    public String getAccount(){
        return account;
    }

    public void setAccount(String account){
        this.account = account;
    }

    public String getName(){
        return name;
    }

    public void setName(String name){
        this.name = name;
    }

    public String getPassword(){
        return password;
    }

    public void setPassword(String password){
        this.password = password;
    }

    public Short getStatus(){
        return status;
    }

    public void setStatus(Short status){
        this.status = status;
    }

    public Date getBirthday(){
        return birthday;
    }

    public void setBirthday(Date birthday){
        this.birthday = birthday;
    }

    public String getEmail(){
        return email;
    }

    public void setEmail(String email){
        this.email = email;
    }

    public String getMobile(){
        return mobile;
    }

    public void setMobile(String mobile){
        this.mobile = mobile;
    }

    public String getWorkTel(){
        return workTel;
    }

    public void setWorkTel(String workTel){
        this.workTel = workTel;
    }

    public String getHomeTel(){
        return homeTel;
    }

    public void setHomeTel(String homeTel){
        this.homeTel = homeTel;
    }

    public String getHomeAddres(){
        return homeAddres;
    }

    public void setHomeAddres(String homeAddres){
        this.homeAddres = homeAddres;
    }

    public String getLinkman(){
        return linkman;
    }

    public void setLinkman(String linkman){
        this.linkman = linkman;
    }

    public String getLinkmanTel(){
        return linkmanTel;
    }

    public void setLinkmanTel(String linkmanTel){
        this.linkmanTel = linkmanTel;
    }

    public Set<Staff> getStaffs(){
        return staffs;
    }

    public void setStaffs(Set<Staff> staffs){
        this.staffs = staffs;
    }

    public Set<PersonGroup> getPersonGroups(){
        return personGroups;
    }

    public void setPersonGroups(Set<PersonGroup> personGroups){
        this.personGroups = personGroups;
    }

    public Set<PersonRole> getPersonRoles(){
        return personRoles;
    }

    public void setPersonRoles(Set<PersonRole> personRoles){
        this.personRoles = personRoles;
    }

    public Short getSex(){
        return sex;
    }

    public void setSex(Short sex){
        this.sex = sex;
    }
}
